package cn.hd.service;

import cn.hd.entity.Fileupload;
import cn.hd.entity.License;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public interface LicenseService {
    //一对多，分页查询
    public PageInfo<License> selectAllFenYeLicense(int pageNum,int pageSize);

    //把每个认证类型对应的资质文件添加到中间表中
    public int addFileuploadLicense(@Param("licenseId")long licenseId, @Param("fileuploadId")long fileuploadId);

    //根据编号查询认证类型及对应的资质文件
    public Fileupload selectLicenseById(long licenseId);

    //根据认证类型编号删除中间表中对应的资质文件
    public int deleteFileuploadLicense(long licenseId);

    //根据编号查询认证类型对象
    public License selectLicenseByLicenseId(long license_id);
}
